Page({

    // 加载
    onLoad() {
        // 隐藏tabBar
        wx.hideTabBar({
            animation: true,
            success: (result)=>{
                
            },
            fail: ()=>{},
            complete: ()=>{}
        });
    },

    // 触摸
    tapMe(e) {
        // 设置导航栏标题Loading
        wx.showNavigationBarLoading()

        // 设置导航栏标题文字
        wx.setNavigationBarTitle({
            title: '导航栏',
            success: (result)=>{
                
            },
            fail: ()=>{},
            complete: ()=>{}
        });

        // 显示tabBar
        wx.showTabBar({
            animation: true,
            success: (result)=>{
                
            },
            fail: ()=>{},
            complete: ()=>{}
        });

        // 2秒关闭Loading
        setTimeout(() => {
            wx.hideNavigationBarLoading()
        }, 2000)
    }
})